<?php
    include ("includes/config.php");    
    include ("includes/connection.php");
    include ("includes/database.php");
    
    $title = $CONFIG["site_name"];
    
    include ("header.php")
?>

<?php
    $posts = getRecentPosts(5);
    
    while ($post = mysql_fetch_assoc($posts)) {
?>  
        <h1><?php echo $post["title"] ?></h1>
        <h3>Di Publish pada: <?php echo $post["published_time"]; ?></h3>
        <?php echo $post["excerpt"] ?>
        <a href="<?php echo $CONFIG["base_url"] ."post.php?id=" . $post["id"] ?>">Selengkapnya</a>
        <br />
<?php
    }
?>

<?php
    include ("footer.php");
?>